﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Linq;

namespace AppFramework.Dto
{
    public class ResultResponseDTO<T>
    {
        public ResponsCode Code { get; set; }
        public string Message { get; set; }
        public T Data { get; set; }
    }
    public enum ResponsCode
    {
        [Display(Name = "处理成功")]
        Succsee = 200,
        [Display(Name = "密码错误")]
        PASSWORDERROR = -201,
        [Display(Name = "用户不存在")]
        USERNO = -202,
        [Display(Name = "参数无效")]
        DIFFERENT = -204,
        [Display(Name = "系统错误")]
        Error = -500,
        [Display(Name = "还没有权限")]
        NoPermission = -401,
    }
}
